<template>
    <div>
        <input type="file" name="" id="" @change="upload($event)" accept="image/*" multiple>
        
    </div>
</template>
<script>
import{getCurrentInstance} from 'vue'
export default {
    setup(){
        const { proxy } = getCurrentInstance()
        const upload=(e)=>{
            console.log(e.target.files[0])
            proxy.$ajax.upload(e.target.files[0],(res)=>{
                console.log(res.url)
            })
        }
        return{upload}
    }
}
</script>